<?php

namespace App\Http\Requests\TK;

use Illuminate\Foundation\Http\FormRequest;

class QuestionResultCheckRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'questionIds' => 'bail|required',
            'result' => 'bail|required|in:1,2',       // 结果，1：正确：2：错误
            'update' => 'bail|nullable|boolean'
        ];
    }
}
